<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../../common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<sfa:mainTitle></sfa:mainTitle>
		<%@ include file="../../../common/meta.jsp"%>
	</head>
	<body id="master">
		<sfa:mainHeader></sfa:mainHeader>
		<form action="" name="form1" method="post">
			<div class="webpart3 contentarea">
				<div class="webpart-head">
					<div class="webpart-head-item">
						${COMMTITILE}
						<div class="tools-btn">
							<a href="javascript:" id="fullScreen"
								onclick="javascript: history.back();"><span> <img
										src="${path}/statics/images/Redo.gif"
										style="margin-right: 4px; margin-bottom: -3px;" />返 回</span> </a>
						</div>
					</div>
				</div>
				<div class="webpart-main">
					<div class="webpart-main-item" style="padding-top: 12px;">
						<!-- 查詢列表 -->
						<div id="mylist" style="height: 365px;overflow: scroll;" class="dlist" width="100%">
						<table class="dg_borderstyle trStyleTable" cellspacing="0"
							cellpadding="0" style="margin-top: 10px; text-align:center;">
							<tr>
								<c:if test="${optype=='FYC'}">
									<tr>
										<th width="40px">
											<span>序号</span>
										</th>
										<th style="min-width: 80px;">
											<span>保单号</span>
										</th>
										<th style="min-width: 80px;">
											<span>投保单号</span>
										</th>
										<th style="min-width: 80px;">
											<span>代理人</span>
										</th>
										<th style="min-width: 80px;">
											<span>保单状态</span>
										</th>
										<th style="min-width: 80px;">
											<span>投保人</span>
										</th>
										<th style="min-width: 80px;">
											<span>受理机构</span>
										</th>
										<th style="min-width: 100px;">
											<span>供应商</span>
										</th>
										<th>
											<span>险种</span>
										</th>
										<th style="min-width: 60px;">
											<span>保费</span>
										</th>
										<th style="min-width: 60px;">
											<span>${optype}</span>
										</th>
										<th style="min-width: 60px;">
											<span>价保</span>
										</th>
										<th style="min-width: 90px;">
											<span>投保日期</span>
										</th>
									</tr>
									<c:forEach items="${pagination.resultList}" var="list">
										<tr>
											<td>
												${list.ROWINDEX}
											</td>
											<td>
												<span>${list.POLICYNO== ''?'未知':list.POLICYNO}</span>
											</td>
											<td>
												<span>${list.APPLICATIONNO}</span> 
											</td> 
											<td>
													<span>${list.AGENTNAME}</span>
											</td>
											<td>
												<span>${list.CONTRACTSTATUS}</span>
											</td>
											<td>
												<span>${list.CUSTOMERNAME}</span>
											</td>
											<td>
												<span>${list.ABBRNAME}</span>
											</td>
											<td>
												<span>${list.PROVIDERABBR}</span>
											</td>
											<td title="${list.PRODUCTNAME}" style="width:120px;overflow: hidden;display: block;text-overflow: ellipsis;white-space: nowrap;">
												<span>${list.PRODUCTNAME}</span>
											</td>
											<td>
												<span>${list.ACCEPTAMOUNT}</span>
											</td>
											<td>
												<span>${list.FYB}</span>
											</td>
											<td>
												<span>${list.VALUEPREM}</span>
											</td>
											<td>
												<span>${list.APPLYDATE}</span>
											</td>
										</tr>
									</c:forEach>
								</c:if>
								<c:if test="${optype=='RYC'}">
									<tr id="dhtr">
										<th width="40px">
											<span>序号</span>
										</th>
										<th>
											<span>保单号</span>
										</th>
										<th width="60px">
											<span>经手人</span>
										</th>
										<th style="min-width: 100px;">
											<span>供应商</span>
										</th>
										<th >
											<span>险种</span>
										</th>
										<th style="min-width: 60px;">
											<span>缴别</span>
										</th>
										<th width="40px">
											<span>年度</span>
										</th>
										<th style="min-width: 90px;">
											<span>生效日期</span>
										</th>
										<th width="60px">
											<span>缴费年期</span>
										</th>
										<th style="min-width: 50px;">
											<span>RYC</span>
										</th>
										<th width="100px">
											<span>续期费率</span>
										</th>
										<th width="100px">
											<span>续佣金额</span>
										</th>
									</tr>
									<c:forEach items="${pagination.resultList}" var="list">
										<tr>
											<td>
												${list.ROWINDEX}
											</td>
											<td>
												<span>${list.POLICYNO}</span>
											</td>
											<td>
												<span>${list.AGENTNAME}</span>
											</td>
											<td>
												<span>${list.PROVIDERABBR}</span>
											</td>
											<td title="${list.PRODUCTNAME}" style="width:120px;overflow: hidden;display: block;text-overflow: ellipsis;white-space: nowrap;">
												<span>${list.PRODUCTNAME}</span>
											</td>
											<td>
												<span>${list.PREMIUMMODE}</span>
											</td>
											<td>
												<span>${list.POLICYYEAR}</span>
											</td>
											<td>
												<span>${list.EFFECTIVEDATE}</span>
											</td>
											<td>
												<span>${list.PREMIUMPERIOD}</span>
											</td>
											<td>
												<span>${list.FYB}</span>
											</td>
											<td>
												<span>${list.COMMISSIONRATE}</span>
											</td>
											<td>
												<span>${list.COMMISSIONAMOUNT}</span>
											</td>
										</tr>
									</c:forEach>
								</c:if>
						</table>
						</div>
						<c:if test="${not empty pagination.multiPage}">
							<div class="dg_pagerstyle">
								<div class="pageinfo">
									第${pagination.page }页 | 共${pagination.totalPages
									}页/${pagination.totalRows }条记录
								</div>

								<div class="pagebtn">
									${pagination.multiPage}
								</div>
							</div>
						</c:if>
					</div>
				</div>
				<div class="webpart-foot">
					<div class="webpart-foot-item"></div>
				</div>
			</div>
		</form>
		<sfa:mainFooter></sfa:mainFooter>
	</body>
</html>